#include <stdio.h>
#include <string.h>
#include <stdlib.h>

int max(int x, int y) {
	return x > y ? x : y;
}

int a = 10;
int add(void)
{
	static int b = 20;
	return ++b;
}

int main() {
	char buf[1024];
	char buf2[1024];
	int *c = (int *)(buf2+1);
	printf("max is %d,%d,%d,%d\n", max(123, 321),a,add(),add());
	printf("test many arguments %d %d %d %s %s %s %s %s %s\n", 1, 2, 3, "a", "b", "c", "d", "e", "f");
	memset(buf, 0x11, sizeof(buf));
	memcpy(buf2+1, buf, 100);
	printf("c is 0x%x\n", *c);
	return 100;
}
